﻿using mscook.core.domain;
using mscook.core.repositories;
using mscook.core.utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.services
{
    public class ActionBonusSettingService : IActionBonusSettingService
    {
        private IActionBonusSettingRepository iActionBonusSettingRepository;
        //private ILogger iLogger;

        public ActionBonusSettingService(IActionBonusSettingRepository iActionBonusSettingRepository)
        {
            this.iActionBonusSettingRepository = iActionBonusSettingRepository;
            //this.iLogger = iLogger;
        }
        public IList<ActionBonusSetting> Select()
        {
            return iActionBonusSettingRepository.GetAll();
        }

        public void SaveOrUpdate(ActionBonusSetting actionBonusSetting)
        {
            iActionBonusSettingRepository.SaveOrUpdate(actionBonusSetting);
        }

        public void Delete(string id)
        {
            iActionBonusSettingRepository.Delete(id);
        }
    }
}
